-- config.lua
config = {}
local M=config

-- 每个module必须实现
-- OS: 脚本适用的平台,加载脚本是校验，any/ios/android/win
-- version: x.x.x
function M:version()
    return "android", "0.0.1"
end

local urlprefix="http://192.168.0.252/ios/"

-- 依赖的业务脚本文件
M.depend = {
    -- {"filename", "version", "md5"},
    {"depend_service.lua", "0.0.1", "bb4d8ad4b1e88a8d674cfee5fd38be62"},
}

-- 可选的业务脚本文件
M.option = {
    -- {"filename", "version", "md5"},
    {"option_service.lua", "0.0.1", "5592910d495e77a57e198e672b26d97e"},
}

-- 命令与函数对应列表
M.cmdstring = {
    {"MODU_HTTP_GET_RESULT", "depend_service:http_get_result"},
    {"MODU_HTTP_POST_RESULT", "depend_service:http_post_result"},
    {"MODU_HTTP_ERROR", "depend_service:http_error"},
    {"MODU_SOCK_NOTIFY", "depend_service:sock_notify"},
    {"MODU_SOCK_RECV", "depend_service:sock_recv"},
    {"MODU_SOCK_STATE", "depend_service:sock_state"},
}

-- http服务线程数
M.http_thread = 10;

-- imay服务端列表
M.server_hosts = {
    {"gate.imay.com", 7000},
    {"gate01.imay.com", 7000},
    {"gate02.imay.com", 7000},
    {"gate03.imay.com", 7000},
    {"gate04.imay.com", 7000},
    {"gate05.imay.com", 7000},
}

print("lua: load config.lua ok\n")
